<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>添加文章</title>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/hdui.css">
    <style type="text/css">
		.checkbox{
			 margin-left:5px;
			 width:90px;
			 margin-top: 10px;
		}
		textarea{
			width: 300px;
			height: 100px;
		}
    </style>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/admin/ueditor1_4_3/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/admin/ueditor1_4_3/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/admin/ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<script>
    var ue = UE.getEditor('editor');
</script>
<div class="wrap">
    <div class="title-header">添加文章</div>
    <form action="" method="post" class="form-inline hd-form" enctype="multipart/form-data">
        <table class="table1">
            <tr>
                <th class="w100">文章标题</th>
                <td class="w100">
                    <input type="text" name="title" class="w200" value="{$arc.title}"/>
                </td>
                <td></td>
            </tr>

            <tr>
                <th class="w100">所属分类</th>
                <td>
                    <select name="category_cid" class="w200">
                        <foreach name="cate" item="v">
                    	<option value="{$v.cid}" <if condition="$arc['category_cid'] eq $v['cid']">selected</if>>{$v.cname}</option>
                        </foreach>
                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">作者</th>
                <td>
                    <input type="text" name="author" class="w200" value="admin"/>
                </td>
                <td>
                </td>
            </tr>
           <tr>
                <th class="w100">文章摘要</th>
                <td>
                    <textarea name="digest" id="" rows="10">{$arc.digest}</textarea>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">缩略图</th>
                <td>
                    <input type="file" name="thumb">
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">文章属性</th>
                <td>
                	<label class="checkbox-inline">
						热门
						<input type="checkbox" value="热门" name="attr[]" class="check_input"
                        <if condition="in_array('热门',$arc['attr'])">checked</if>
                                >

					</label>
					<label class="checkbox-inline">
						置顶
						<input type="checkbox" value="置顶" name="attr[]" class="check_input"
                        <if condition="in_array('置顶',$arc['attr'])">checked</if>
                                >
					</label>
					<label class="checkbox-inline">
						推荐
						<input type="checkbox" value="推荐" name="attr[]" class="check_input"
                        <if condition="in_array('推荐',$arc['attr'])">checked</if>
                                >
					</label>
					<label class="checkbox-inline">
						图文
						<input type="checkbox" value="图文" name="attr[]" class="check_input"
                        <if condition="in_array('图文',$arc['attr'])">checked</if>
                                >
					</label>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">文章标签</th>
                <td>
                    <foreach name="tag"  item="v">
                        <label class="checkbox-inline">
                            <p style="float: left;margin-right: 5px;">{$v.tagname}<input type="checkbox" value="{$v.tid}" name="tid[]" class="check_input"

                            <if condition="in_array($v['tid'],$tagtid)">checked</if>
                                    ></p>
                        </label>
                    </foreach>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">文章关键字</th>
                <td>
                    <textarea name="keywords" id="" rows="10">{$arcdata.keywords}</textarea>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">文章描述</th>
                <td>
                    <textarea name="description" id="" cols="30" rows="10">{$arcdata.description}</textarea>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">文章正文</th>
                 <td colspan="2">
                     <script id="editor" type="text/plain" name="content"
                             style="width:100%;height:300px;">{$arcdata.content}</script>
                 </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100"></th>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100"></th>
                <td></td>
                <td></td>
            </tr>
        
        </table>
        <div class="position-bottom">
            <input type="hidden" name="aid" value="{$Think.get.aid}">
            <input type="submit" class="hd-success" value="修改"/>
        </div>
    </form>
</div>
</body>
</html>